<?php
if (isset($shoeShowList) && count($shoeShowList) > 0) {
    foreach ($shoeShowList as $shoeShowMsg) {
        $shoeShowImg = make_img_name::make_img_mini_name(explode(";", $shoeShowMsg->Picture, 2)[0]);
        if (!empty($shoeShowImg)) {
            $isRecommend = $myShoeShow->show_recommend_check($shoeShowMsg->Id);
            if ($isRecommend === true) $recommendIconEx = ''; else $recommendIconEx = '-o';
            $isCommend = $myShoeShow->show_comment_check($shoeShowMsg->Id);
            if ($isCommend === true) $commendIconEx = ''; else $commendIconEx = '-o';
            ?>
            <li class="am-g" style="padding: 2px 5px 10px 5px">
                <a onclick="goto_shoe_show(<?= $shoeShowMsg->WorkId ?>,<?= $shoeShowMsg->WorkIndex ?>)">
                    <div class="am-u-sm-3 am-list-thumb">
                        <div class="app-img-flex"
                             style="background-image:url(<?= $CfgPara->httproot ?>/shoe_show_pic/<?= $shoeShowImg ?>);">
                        </div>
                    </div>
                    <div class=" am-u-sm-9 am-list-main">
                        <div class="am-list-item-text am-text-truncate">
                            <span class="app-author-link"><?= $shoeShowMsg->UserName ?></span>&nbsp;:&nbsp;<span><?= $shoeShowMsg->Introd; ?></span>
                        </div>
                        <?php if ($shoeShowMsg->State == 1) { ?>
                            <div class="am-list-item-text" style="margin-top: 5px">
                                <i class="am-icon am-icon-heart<?= $recommendIconEx ?> am-icon-fw"></i><?= formatDataSize($shoeShowMsg->UpCount) ?>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <i class="am-icon am-icon-comment<?= $commendIconEx ?> am-icon-fw"></i><?= formatDataSize($shoeShowMsg->CommentCount) ?>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <i class="am-icon am-icon-eye am-icon-fw"></i><?= formatDataSize($shoeShowMsg->ViewCount) ?>
                            </div>
                        <?php } else { ?>
                            <i class="am-icon am-icon-edit am-icon-fw"></i>草稿
                        <?php } ?>
                    </div>
                </a>
            </li>
        <?php }
    }
} //if(isset($shoeShowList))结束
else //没有内容
{
    if (!isset($InputData['page_change']) || isset($InputData['search_text']))
        require("{$CfgPara->root}/view/warning_nocontent.app.v.php");
}
?>